package com.webservice.xmloper.visitlogcode;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.thoughtworks.xstream.XStream;

public class VisitLogCodeOper {
	
	/**
	 * 解析访问日志指令
	 * 参数为字符串
	 */
	public static SmcsLogQuery ParseVisitLogCode(String xmlString) throws Exception{
		XStream xs = new XStream();
		xs.processAnnotations(SmcsLogQuery.class);
		InputStream myIn=new ByteArrayInputStream(xmlString.getBytes());
		return (SmcsLogQuery) xs.fromXML(myIn);
	}
}
